package me.zhengjie.modules.system.repository

import me.zhengjie.modules.system.domain.Job
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.JpaSpecificationExecutor

/**
 * @author Kuki Wu
 * @date 2019-03-29
 */
interface JobRepository : JpaRepository<Job?, Long?>, JpaSpecificationExecutor<Job?> {

    /**
     * 根据名称查询
     * @param name 名称
     * @return /
     */
    fun findByName(name: String?): Job?

    /**
     * 根据Id删除
     * @param ids /
     */
    fun deleteAllByIdIn(ids: Set<Long?>?)
}